import request from '@/utils/request';

export async function getLogByPage(params: any) {
  return request('/api/logging/getLogByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addLog(params: any) {
  return request('/api/logging/addLog', {
    method: 'POST',
    data: params,
  });
}

export async function updateLog(params: any) {
  return request('/api/logging/updateLog', {
    method: 'POST',
    data: params,
  });
}

export async function delLog(params: any) {
  return request('/api/logging/delLog', {
    method: 'POST',
    data: params,
  });
}
export default { getLogByPage, addLog, updateLog, delLog };
